package com.wing.order.model.request;

import com.wing.cabinet.model.response.CabinetLoadPlanDetailVO;
import com.wing.order.model.entity.InventoryJobLabel;
import com.wing.order.model.response.InventoryJobLabelVO;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.wing.order.model.entity.OrderReceive;
import java.time.LocalDateTime;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * 领货单Form
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class OrderReceiveForm {

    /**
     * ID
     */
    private Long id;

    /**
     * 创建者
     */
    private Long creator;

    /**
     * 修改者
     */
    private Long modifier;

    /**
     * 创建人
     */
    private String creatorName;

    /**
     * 修改人
     */
    private String modifierName;

    /**
     * 配货订单编号
     */
    private String code;

    /**
     * 状态
     */
    private OrderReceive.Status status;

    /**
     * 配货需求单id
     */
    private Long demandId;


    public interface Add{}

    public interface Update{}

    private String taskCode;

    private String loadCode;

    /**
     * 类型
     */
    private OrderReceive.Type type;

    /**
     * 类型描述
     */
    private String typeDesc;

    public String getTypeDesc() {
        return type == null ? null : type.getDesc();
    }


    /**
     * 上货计划id
     */
    private Long loadPlanId;

    private List<InventoryJobLabelVO> labelList;

    private List<CabinetLoadPlanDetailVO> loadPlanDetailList;
}
